export default {
    selectCity (state, cityInfo) {
        state.cityName = cityInfo.cityName;
        state.cityId = cityInfo.cityId;

        try {
            localStorage.cityInfo = JSON.stringify(state);
        } catch (e) { };
    },
    selctField (state, field) {
        state.field = field;

        try {
            localStorage.cityInfo = JSON.stringify(state);
        } catch (e) { };
    }
}